package cn.dnf.feign;

import cn.dnf.domain.Ticket;
import cn.dnf.domain.User;
import cn.dnf.fallbackFactory.UserFallbackFactory;
import cn.dnf.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "service-user",fallbackFactory = UserFallbackFactory.class)
@RequestMapping("/user")
public interface UserFeignClients {
    @RequestMapping(value ="/add",method = RequestMethod.POST)
    JsonResult add(@RequestBody Ticket ticket);
}
